<%@ page language="java" import="cn.crm.util.*;" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>客户分析</title>
<script src="../js/jquery-1.8.3.min.js"></script>
<script type="text/javascript">
    function ck(obj){
    	var column="DDLByTypeIndustry.typeId";
    	if (obj.value=="客户等级") {
    		column="DDLByTypeLive.typeId";
		}else if(obj.value=="客户性质"){
			column="DDLByTypeNature.typeId";
		}else if(obj.value=="客户类型"){
			column="DDLByTypeCtype.typeId";
		}else if(obj.value=="客户来源"){
			column="DDLByTypeCustsource.typeId";
		}
    	setTimeout(exe(obj,column),2000);
    }
    function exe(obj,column){
    	$.ajaxSetup({  
    	    async : false  
    	}); 
    	$.get("setTypeCustomer.action",{"type":obj.value,"column":column},function(data){
    		if (data!=null) {
    			$("#img").html(data);
			}
    	});
    }
</script>
</head>
<body>
<form>
   <input type="button" onclick="ck(this)" value="客户行业">
   <input type="button" onclick="ck(this)" value="客户等级">
   <input type="button" onclick="ck(this)" value="客户性质">
   <input type="button" onclick="ck(this)" value="客户类型">
   <input type="button" onclick="ck(this)" value="客户来源">
   <br/>
   <div id="img"></div>
</form>
</body>
</html>